from langchain_core.messages import HumanMessage
from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder

prompt_template = ChatPromptTemplate.from_messages(
    [("system", "You are a helpful assistant"), MessagesPlaceholder("msgs")])
response = prompt_template.invoke({"msgs": [HumanMessage(content="hi!")]})

print(response)
